package com.ms.game.gameActivity;

import com.xpec.c4.game.utility.GameUtility;

public class GameActivityUtils {
	
	
	/**
	 * 時間分割 
	 * ex :  800 切割成 2017/07/05 08:00:00
	 * ex : 1330 切割成 2017/07/05 13:30:00
	 * 回傳秒
	 */
	public static long getActivityTime(long shorTime) {
		int hour = (int) (shorTime / 100);
		int min = (int) (shorTime - hour * 100);
		long timeStamp = GameUtility.getTimeStamp(hour, min, 0, 0);
		return timeStamp / 1000;
	}
	
}
